glarea: Remove useless function
authorBenjamin Otte <otte@redhat.com>
Sat, 31 Jan 2015 00:55:04 +0000 (01:55 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 31 Jan 2015 00:55:04 +0000 (01:55 +0100)
The function should have been gone in
27cf0fa34c3a51ddb50391f21aaf2e3984d6dddb

gtk/gtkglarea.c

index cbf1c92da44219975ac6493c9bf9c3493f02191b..ee7a30f38195fc2f6250770bf8cb666b37fd922e 100644 (file)
@@ -524,24 +524,6 @@ gtk_gl_area_delete_buffers (GtkGLArea *area)
     }
 }
 
-static void
-gtk_gl_area_post_render (GtkGLArea *area)
-{
-  GtkGLAreaPrivate *priv = gtk_gl_area_get_instance_private (area);
-  GLenum invalidate[4];
-  int i = 0;
-
-  if (priv->has_depth_buffer)
-    invalidate[i++] = GL_DEPTH_ATTACHMENT;
-
-  if (priv->has_stencil_buffer)
-    invalidate[i++] = GL_STENCIL_ATTACHMENT;
-
-  if (priv->auto_render)
-    invalidate[i++] = GL_COLOR_ATTACHMENT0;
-}
-
-
 static void
 gtk_gl_area_unrealize (GtkWidget *widget)
 {
@@ -698,7 +680,6 @@ gtk_gl_area_draw (GtkWidget *widget,
                               priv->texture ? GL_TEXTURE : GL_RENDERBUFFER,
                               scale, 0, 0, w, h);
       gtk_gl_area_make_current (area);
-      gtk_gl_area_post_render (area);
     }
   else
     {